Skip to content

BLASTBufferQueue: Add epoll_pwait2 fallback for older kernels#22

Open
raystef66 wants to merge 1 commit intocrdroidandroid:16.0from
raystef66:16.0
Open

BLASTBufferQueue: Add epoll_pwait2 fallback for older kernels#22
raystef66 wants to merge 1 commit intocrdroidandroid:16.0from
raystef66:16.0

Conversation

@raystef66
Copy link
Member

The epoll_pwait2 syscall was introduced in Linux 5.11. Older kernels return ENOSYS when attempting to use this syscall, causing buffer release operations to fail.

12-07 18:05:15.668 2095 2226 E BLASTBufferQueue: epoll_wait error while waiting for buffer release. errno=38 message='Function not implemented'
12-07 18:05:15.668 2095 2226 E BLASTBufferQueue: epoll_wait error while waiting for buffer release. errno=38 message='Function not implemented'

Test: Boot device with kernel < 5.11, verify no epoll errors

@gwolf2u
Copy link
Member

gwolf2u commented Feb 6, 2026

rebase?
still needed?

@raystef66
Copy link
Member Author

raystef66 commented Feb 6, 2026

Still needed in my case on lmi (4.19) and cepheus (4.14) (alioth fine though even 4.19)
Without, logs keep spamming like hell with the above. Even Matlog gets unstable.

The epoll_pwait2 syscall was introduced in Linux 5.11. Older kernels
return ENOSYS when attempting to use this syscall, causing buffer
release operations to fail.

12-07 18:05:15.668  2095  2226 E BLASTBufferQueue: epoll_wait error while waiting for buffer release. errno=38 message='Function not implemented'
12-07 18:05:15.668  2095  2226 E BLASTBufferQueue: epoll_wait error while waiting for buffer release. errno=38 message='Function not implemented'

Test: Boot device with kernel < 5.11, verify no epoll errors

Signed-off-by: Dmitrii <bankersenator@gmail.com>
Copy link
Member

@gwolf2u gwolf2u left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

technically I see no issue with this as it also has fallback impl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants